package chpt02;

public class StringDemo05 {
	
	public static void main(String[] args) {
		StringBuilder builder = new StringBuilder();
		builder.append("Hello").append("world");
		System.out.println("append操作: " + builder);
		builder.insert(5,"-");
		System.out.println("insert操作: " + builder);
		change(builder);
		System.out.println("修改操作：" + builder);
	}
	public static void change(StringBuilder s) {
		s.append("-").append("Java");
	}
}
